package org.BattleOfGoode;

import net.obviam.droidz.R;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.view.MotionEvent;
import android.view.SurfaceView;
import android.view.View;

public class PanelMenu extends SurfaceView {
	
	public Bitmap background;
	
	public PanelMenu(Context context)
	{
		super(context);
//		getHolder().addCallback(this);
		// make the GamePanel focusable so it can handle events
		setFocusable(true);
		background = BitmapFactory.decodeResource(getResources(), R.drawable.logo);
	}
	
	public void render(Canvas canvas) {
		canvas.drawBitmap(background, 0, 0, null);
	}
	
	@Override	
	public boolean onTouchEvent(MotionEvent event) {
		return true;
	}
}
